<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>我的业务列表01 </h5>
        <div class="ibox-tools">
            <a class="collapse-link">
                <i class="fa fa-chevron-up"></i>
            </a>
            <a class="close-link">
                <i class="fa fa-times"></i>
            </a>
        </div>
    </div>
    <div class="ibox-content" style="padding:10px">
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover table-condensed">
                <tr>
                    <th><input type="checkbox" class="js-check-all" id="0"></th>
                    <th>ID</th>
                    <th>所属分类</th>
                    <th>标题</th>
                    <th>状态</th>
                    <th>发布时间</th>
                    <th>操作</th>
                </tr>
                {foreach name="articleList" item="al"}
                <tr>
                    <td><input type="checkbox" class="js-check" id="{$al.id}"></td>
                    <td>{$al.id}</td>
                    <td>
                        {volist name="al.categorys" id="vo" empty="未分类"}
                        {gt name="key" value="0"}<br>{/gt}<span class="label">{$vo.title_cn}</span>
                        {/volist}
                    </td>
                    <td><a href="{:url(request()->controller().'/viewArticle',['id'=>$al['id']])}">{$al.title}</a>{eq name="al.is_top" value="1"}<span class="label label-info label-sm">顶</span>{/eq}</td>
                    <td>{$al.status_text}</td>
                    <td>{$al.post_time}</td>
                    <td>
                        <a href="{:url(request()->controller().'/viewArticle',['id'=>$al['id']])}"><button class="btn btn-xs btn-info" data-toggle="tooltip" data-placement="top" title="查看"><i class="fa fa-eye"></i> 查看</button></a>
                        <a href="{:url(request()->controller().'/editArticle',['id'=>$al['id']])}"><button class="btn btn-xs btn-warning" data-toggle="tooltip" data-placement="top" title="修改"><i class="fa fa-pencil"></i> 修改</button></a>
                        {eq name="al.status" value="0"}
                        <a href="{:url(request()->controller().'/postArticle',['id'=>$al['id']])}" class="ajax-a"><button class="btn btn-xs btn-primary" data-toggle="tooltip" data-placement="top" title="发布"><i class="fa fa-upload"></i> 发布</button></a>
                        {/eq}
                        {eq name="al.ad_id" value="0"}
                        <button class="btn btn-xs btn-success addHeadline" data-title="{$al.title}" data-url="{:url('cms/Article/viewArticle',['aid'=>$al['id']])}" data-article-id="{$al.id}" data-ad-id="{$al.ad_id|default=0}"><i class="fa fa-hand-o-up"></i> 上头条</button>
                        {else/}
                        <button class="btn btn-xs btn-white js-btn" data-action="{:url(request()->controller().'/deleteTop',['adId'=>$al['ad_id'],'artId'=>$al['id']])}"><i class="fa fa-hand-o-down"></i> 取消头条</button>
                        {/eq}
                        {eq name="al.is_top" value="0"}
                        <button class="btn btn-xs btn-info js-btn" data-action="{:url(request()->controller().'/setTop',['id'=>$al['id']])}"><i class="fa fa-arrow-circle-up"></i> 置顶</button>
                        {else/}
                        <button class="btn btn-xs btn-white js-btn" data-action="{:url(request()->controller().'/unsetTop',['id'=>$al['id']])}"><i class="fa fa-arrow-circle-down"></i> 取消置顶</button>
                        {/eq}
                        <button class="btn btn-xs btn-danger js-btn-delete" data-action="{:url(request()->controller().'/deleteArticle',['id'=>$al['id']])}"><i class="fa fa-remove"></i> 删除</button>
                    </td>
                </tr>
                {/foreach}
                <tfoot>
                <tr>
                    <td colspan="7">{$articleList->render()|raw}</td>
                </tr>
                </tfoot>
            </table>
        </div>
    </div>
</div>